<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../admin.inc.jsp"%>
<script>
function callback(success, msg) {
	if (success) {
		alertMsg.info(msg);
	}else{
		alertMsg.warn(msg);
	}
}

</script>
<div class="pageContent">
	<s:form name="myForm" id="form_reservation_detail" action="/admin/reservation/detail"
		method="POST" enctype="multipart/form-data" target="hidden_frame">
		<div class="panelBar">
			<ul class="toolBar">
	            
	        </ul>
		</div>
		<div class="pageFormContent" layoutH="255">
			<p>
				<label style="width:100px;">用户ID：</label>
				<input type="text" name="item.userId" value="${item.userId}"  readonly>
			</p>
			
			<p>
				<label style="width:100px;">用户昵称：</label>
				<input type="text" name="item.nickName" value="${item.nickName}"  readonly>
			</p>
			
			<p>
				<label style="width:100px;">用户名称：</label>
				<input type="text" name="item.realName" value="${item.realName}"  readonly>
			</p>
			
			<p >
				<label style="width:100px;">公司名称：</label>
				<input type="text" name="item.companyName" value="${item.companyName}"  readonly>
			</p>
			
			<p>
				<label style="width:100px;">工作开始时间：</label>
				<input id="workStartTime"  class="Wdate" type="text"  name="item.workStartTime" 
				value="<fmt:formatDate value='${item.workStartTime}' pattern="yyyy-MM-dd HH:mm:ss" />"  readonly="true">
			</p>
			
			<p>
				<label style="width:100px;">工作结束时间：</label>
				<input id="workEndTime"  class="Wdate" type="text"  name="item.workEndTime" 
				value="<fmt:formatDate value='${item.workEndTime}' pattern="yyyy-MM-dd HH:mm:ss" />"   readonly="true">
			</p>
			
			<p style="display:none;">
				<label style="width:100px;">模特需求：</label>
				<input type="text" name="item.modelRequirement"  value="${item.modelRequirement}"  readonly="true">
			</p>
			
			<p>
				<label style="width:100px;">工作城市：</label>
				<select disabled="disabled">
						<c:forEach var="item1" items="${cityList}">
			            	<option value="${item1.code}"  ${item.workCityCode==item1.code?"selected":""}>${item1.name}</option>
			            </c:forEach>
					</select>
			</p>
			
			<p>
				<label style="width:100px;">工作地点：</label>
				<input type="text" name="item.workAddress"  value="${item.workAddress}"  readonly="true">
			</p>
			
			<p>
				<label style="width:100px;">总工作小时数：</label>
				<input type="text" name="item.workHours"  value="${item.workHours}"  readonly="true">
			</p>
			
			<p>
				<label style="width:100px;">服务品牌：</label>
				<input type="text" name="item.serviceBrand"  value="${item.serviceBrand}"  readonly="true">
			</p>
			
			<p>
				<label style="width:100px;">备注：</label>
				<input type="text" name="item.remark"  value="${item.remark}"  readonly="true">
			</p>
			
			<p>
				<label style="width:100px;">联系人姓名：</label>
				<input type="text" name="item.name"  value="${item.name}"  readonly="true">
			</p>
			
			<p>
				<label style="width:100px;">联系人电话：</label>
				<input type="text" name="item.phoneNo"  value="${item.phoneNo}"  readonly="true">
			</p>
			
			<p>
				<label style="width:100px;">总价格：</label>
				<input type="text" name="item.totalAmount" value="${item.totalAmount}"  readonly>
			</p>
			<p>
				<label style="width:100px;">创建时间：</label>
				<input type="text" name="item.totalAmount" value="<fmt:formatDate value='${item.createTime}' pattern="yyyy-MM-dd HH:mm:ss" />"  readonly>
			</p>
			<c:if test="${requireList != null}">
				<table class="table" width="60%"  >
					<thead>
						<tr style="display:none;">
							<th width="40" >序号</th>
							<th width="40" >性别</th>
							<th width="50" >工作小时数</th>
						</tr>
					</thead>
					<tbody style="text-align:center">
						<c:forEach var="item2" items="${requireList}"  varStatus="status">
							<tr target="shortId" rel="${item2.id}" style="display:none;">
								<td>${ status.index + 1}</td>
								<td>${item2.sex=='01'?"男":"女"}</td>
								<td>${item2.workHours}</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
				</c:if>
			
			<br>
			<c:if test="${shortList != null}">
				<table class="table" width="60%">
					<thead>
						<tr>
							<th width="40">序号</th>
							<th width="40">模特ID</th>
							<th width="50">模特名称</th>
							<th width="50">工作开始时间</th>
							<th width="50">工作结束时间</th>
							<th width="50">总工作小时数</th>
							<th width="50">单价</th>
						</tr>
					</thead>
					<tbody style="text-align:center">
						<c:forEach var="item1" items="${shortList}"  varStatus="status">
							<tr target="shortId" rel="${item1.id}" style="">
								<td>${ status.index + 1}</td>
								<td>${item1.modelId}</td>
								<td>${item1.modelName}</td>
								<td><fmt:formatDate value='${item1.workStartTime}' pattern="yyyy-MM-dd HH:mm:ss" /></td>
								<td><fmt:formatDate value='${item1.workEndTime}' pattern="yyyy-MM-dd HH:mm:ss" /></td>
								<td>${item1.workHours}</td>
								<td>${item1.unitAmount}</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
				</c:if>
		</div>
	</s:form>
</div>
<iframe name='hidden_frame' id="hidden_frame" style='display: none'></iframe>